package com.headFirst.frist;
//鸭子超类
public abstract class Duck {
    Flybehavior flybehavior;
    Quackbehavio quackbehavio;
    public void performfly(){
        flybehavior.fly();
    }
    public void performquack(){
        quackbehavio.quack();

    }
//呱呱叫
//    public void quack(){}
//    游泳
    public void swim(){}
//    外观
    public abstract void display();
}
